def Print(lst):
    print('[')
    for i in range(len(lst)):
        if i != len(lst) - 1:
            e = ',' + '\n'
        else:
            e = '\n'
        print(' ', end='')
        print(lst[i], end=e)
    print(']')

t = [[1], [1, 1]]
for i in range(2, 10):
    _ = [1]
    n = len(t[i - 1])
    for j in range(n - 1):
        a = t[i - 1][j] + t[i - 1][j + 1]
        _.append(a)
    _.append(1)
    t.append(_)

Print(t)

